package com.qinglei.recoup.system.service;

import com.qinglei.recoup.common.domain.CommonRes;
import com.qinglei.recoup.system.domain.BedInfoMationDownDataVo;
import com.qinglei.recoup.system.domain.BedInformation;
import com.baomidou.mybatisplus.extension.service.IService;
import com.qinglei.recoup.system.pojo.FileParam;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.FileNotFoundException;
import java.util.List;

/**
 * @author dqh
 */
public interface BedInformationService extends IService<BedInformation> {

    void addOrUpdate(BedInformation bedInformation);

    CommonRes getAllBedInformationType();

    BedInformation getByBedId(Integer bedId);

    void deleteByBedId(Integer bedId);

    BedInformation getByBedSnCode(String snCode);

    void deleteBySnCode(String snCode);

    CommonRes uploadFile(MultipartFile multipartFile, HttpServletRequest request);


    CommonRes importBedMsg(String filePath,Boolean isImport);

    List<BedInfoMationDownDataVo> downProblemData(FileParam filePath) throws FileNotFoundException;
}
